<%@page import="java.util.Collections"%>
<%@page import="java.util.ArrayList"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="com.googlecode.objectify.Query"%>
<%@page import="com.googlecode.objectify.Objectify"%>
<%@page import="model.KeywordUnique"%>
<%@page import="com.googlecode.objectify.ObjectifyService"%>
<%
	request.setCharacterEncoding("utf-8");
%>

<%
Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<String> siteview = null;
if(cache.containsKey("view"))
{
	siteview = (ArrayList<String>) cache.get("view");
}
if(siteview!=null&&siteview.size()>0)
{
	out.print("<ul class=\"new_search\">");
	out.print("<li>New keywords : </li>");
	for (int i=0;i<siteview.size();i++) {
		out.print("<li><a href='/keyword/"+siteview.get(i)+"'>"+siteview.get(i)+"</a></li>");
	}
	out.print("</ul>");
}
%>